package lianxi4;

import java.util.ArrayList;

public class StuManger {
    private ArrayList<Student> arr = new ArrayList<>();
    StudentOpeator stuOpeator = new StudentOpeator2();

    public StuManger(){
        arr.add(new Student("张三", "男", 90));
        arr.add(new Student("李四", "女", 77));
        arr.add(new Student("王五", "女", 54));
        arr.add(new Student("赵六", "女", 56));
        arr.add(new Student("钱七", "男", 86));
    }

    public void printAll() {
        stuOpeator.printAllStudents(arr);
    }

    public void printAllscore() {
        stuOpeator.printAllScores(arr);;
    }

}
